php hide decimals if zero

38

echo floatval('125.00');
// 125

echo floatval('966.70');
// 966.7

echo floatval('844.011');
// 844.011

Comments

Submit
0 Comments